// pages/mine/setting/setting.ts
Page({

    /**
     * 页面的初始数据
     */
    data: {
        show: false,
        servicePhones: [{
            name: "027-65521002",
            id: 0
        }, {
            name: "13212774009",
            id: 1
        }]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad() {

    },
    toAboutus() {
        wx.navigateTo({
            url: "./aboutus/aboutus"
        })
    },
    toProblem() {
        wx.navigateTo({
            url: "./problem/problem"
        })
    },
    showPhone() {
        this.setData({
            show: true
        })
    },
    onSelect(event) {
        console.log(event.detail);
        this.setData({
            show: false
        })
    },
    // 取消弹出
    onCancel() {
        this.setData({
            show: false
        })
    },
    showExitModal() {
        wx.showModal({
            content: '是否确定登录？',
            confirmText: '确定',
            cancelText: '取消',
            confirmColor: '#0091FF',
            cancelColor: '#999999',
            success(res) {
                if (res.confirm) {
                    // siteService.loginOut(Store.getLocalSync('id')).then(res=>{
                    // })
                    // getApp().globalData.loginOut = true
                    // createRouter().reLaunch('/login')
                    // wx.clearStorage()
                    // loginOutTIM()
                }
            }
        })
    }
})